dxp-ux
POST paymentMethod (TMF-670)
[POST] Towards ARIA
This operation create a paymentMethod entity for customer.
Request URL
https://[localhost]:[port]/dxp-ux/v1/{businessId}/paymentMethod
URL PARAMS
name | type | description | required |
---|---|---|---|
businessId | string | 2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit. | Y |
Header
name | value | description | required |
---|---|---|---|
client_id | string | The client_id identifying the channel. Minimum characters: 5 | Y |
client_secret | string | Password associated with the client_id. Minimum characters: 5 | Y |
Correlation-ID | string | Identifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. | N For business it is Mandatory |
channelId | string | Channel to business: Can be : APP | Y |
targetSystem | String | To identify the bss system Eg: aria | Y |
Request Data Model
Request Field Name | type | M/O | Description |
---|---|---|---|
id | string | M | Unique external identifier for payment method in Aria System |
name | string | O | A word, term, or phrase by which the payment method is known. |
account.id | string | M | account id |
account.name | string | O | account name |
@type | string | M | Aria is accepting only 2 fields 1. TokenizedCreditCard and 2. ElectronicCheque (ACH |
description | string | O | Payment method description |
authorizationCode | string | M | "AutoPayDue(n)_PR" : where n is from 0 to 18. 0 to 18 refer to you can set when you want to set the auto pay to be collected from the bill date. example: AutoPay_Due_15_PR |
details.accountNumber | string | M/O | Account number Mandatory for ACH(ElectronicCheque) Not in scope |
details.bic | string | M/O | Bank routing number Mandatory for ACH(ElectronicCheque) Not in scope |
details.token | string | M | Payment token (braintree token) |
contact/contactName | string | O | Billing Contact Name to provide comma separated values for first name, middle name and last name. Example: Anna,m,Cristal or Anna |
contact /contactMedium | Array (contactMedium) | O | A list of contact mediums. Indicates the contact medium that could be used to contact the party. |
contact/contactMedium.mediumType | String | O | Contact medium type ‘BillAddress’. |
contact/contactMedium.characteristics | (Object) | O | Contact Characteristics If no contact characteristics are present in the request, bill contact no will not be present in the response. |
contact/contactMedium.characteristics.contactType | string | O | Type of billing contact. Default value “primary”. |
contact/contactMedium.characteristics.street1 | string | O | First address line of the billing contact. |
contact/contactMedium.characteristics.street2 | string | O | Second address line of the billing contact. |
contact/contactMedium.characteristics.city | string | O | City of the billing contact. |
contact/contactMedium.characteristics.stateOrProvince | string | O | State or province of the billing contact. Eg: "OT" |
contact/contactMedium.characteristics.postcode | string | O | Postal code for the billing contact. Postal/Zip code for the contact's address |
contact/contactMedium.characteristics.country | string | O | Country of the billing contact. The ISO-compliant 2-character country code abbreviation in uppercase. Country as ISO code Eg: “CA” |
contact/contactMedium.characteristics.emailAddress | string | O | Email of the billing contact. |
contact/contactMedium.characteristics.phoneNumber | string | O | Phone number of the billing contact. |
contact/contactMedium.characteristics.faxNumber | string | O | Fax number of the billing contact. |
Request Body
This table include the field which are required to create paymentMethod in aria system.
{
"id": "BANx0823-CANx22x1_PM_001",
"name": "Main credit card",
"authorizationCode": "AutoPay_Due_15_PR",
"description": "Tokenised Credit Card",
"@type": "TokenisedCreditCard",
"account": [
{
"id": "BANx0823-CANx22x1",
"name": "Anna,Cristal"
}
],
"details": {
"token": "gftvcdb"
},
"contact": [
{
"contactName": "Anna,M,Cristal",
"contactType": "primary",
"contactMedium": [
{
"mediumType": "PostalAddress",
"characteristic": {
"city": "Toronto",
"street1": "15 Rue des Canards",
"street2": "15 Rue des Canards",
"postCode": "75014",
"country": "CA",
"stateOrProvince": "PR",
"phoneNumber": "9123746584",
"emailAddress": "Annacristal@gmail.com",
"faxNumber": "3454354353"
}
}
]
}
]
}
Response 201
{
"relatedParty": [
{
"id": "37357823",
"@type": "BillContactRef"
}
],
"id": "BANx0823-CANx22x1_PM_001",
"name": "Main PM",
"description": "Tokenized Credit Card",
"@type": "TokenizedCreditCard",
"account": [
{
"id": "CA-111001-01"
}
],
"details": {
"token": "SALESFORCE003"
},
"contact": [
{
"contactName": "Anna,m,M,Cristal",
"contactType": "primary",
"contactMedium": [
{
"mediumType": "BillAddress",
"characteristic": {
"city": "Toronto",
"street1": "15 Rue des Canards",
"street2": "15 Rue des Canards",
"postCode": "75014",
"country": "CA",
"stateOrProvince": "OT",
"phoneNumber": "9123746584",
"emailAddress": "Annacristal@gmail.com",
"faxNumber": "3454354353"
}
}
]
}
]
}